package com.java65;

import java.util.Scanner;

public class WhileDemo {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String answer="";
        do{
            System.out.println("上机编写一道编码题");
            System.out.println("老师检查是否通过（y/n）,通过了吗？");
            answer=input.next();
        }while ("y".equalsIgnoreCase(answer));
        System.out.println("恭喜你,通过!");
    }
}
